package com.lframework.starter.web.inner.enums.system;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.lframework.starter.web.core.enums.BaseEnum;

public enum SysDataPermissionModelDetailCalcType implements BaseEnum<Integer> {

    AND(1, "AND", "并且"), OR(2, "OR", "或者");

    @EnumValue
    private final Integer code;
    private final String desc;
    private String operation;

    SysDataPermissionModelDetailCalcType(Integer code, String operation, String desc) {

        this.code = code;
        this.operation = operation;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {

        return this.code;
    }

    @Override
    public String getDesc() {

        return this.desc;
    }

    public String getOperation() {
        return operation;
    }
}
